package com.hengpeng.msls.port.client.vo.client;

import java.util.List;

import com.hengpeng.common.persist.entity.AbstractAutoIdEntity;

public class Problem {
	/**
	 * <pre>
	 * 投票问题选项
	 * </pre>
	 * @author shaopeng
	 * @version 1.0, 2012-12-6
	 */
	public static class Option extends AbstractAutoIdEntity
	{
		private static final long serialVersionUID = 9123998055219438603L;

		private Integer chooseCount;

		private String description;

		private String isEdit;// 是否可编辑

		private String percentage;// 投注比例

		private String title;

		public Integer getChooseCount()
		{
			return chooseCount;
		}

		public String getDescription()
		{
			return description;
		}

		public String getIsEdit()
		{
			return isEdit;
		}

		public String getPercentage()
		{
			return percentage;
		}

		public String getTitle()
		{
			return title;
		}

		public void setChooseCount(Integer chooseCount)
		{
			this.chooseCount = chooseCount;
		}

		public void setDescription(String description)
		{
			this.description = description;
		}

		public void setIsEdit(String isEdit)
		{
			this.isEdit = isEdit;
		}

		public void setPercentage(String percentage)
		{
			this.percentage = percentage;
		}

		public void setTitle(String title)
		{
			this.title = title;
		}
	}

	/**
	 * <pre>
	 * 问题选项类型
	 * </pre>
	 * @author shanguogang
	 * @version 1.0, 2012-12-17
	 */
	public static enum OptionType
	{
		/**
		 * 复选
		 */
		CHECKBOX("复选"),
		/**
		 * 单选
		 */
		RADIO("单选"),
		/**
		 * 文本
		 */
		TEXT("文本"), ;

		private String text;

		OptionType(String text)
		{
			this.text = text;
		}

		public String getText()
		{
			return text;
		}

		public void setText(String text)
		{
			this.text = text;
		}
	}

	private static final long serialVersionUID = -5166155105773639041L;

	// 问题回答次数
	private Integer chooseCount;

	// 备注
	private String description;

	private Long id;

	// 该问题所属调查表
	private Long inquiryId;

	private List<Option> options;

	// 问题选择类型
	private OptionType optionType;

	// 会员店编号
	private String storeId;

	// 问题
	private String title;

	public Integer getChooseCount()
	{
		return chooseCount;
	}

	public String getDescription()
	{
		return description;
	}

	public Long getId()
	{
		return id;
	}

	public Long getInquiryId()
	{
		return inquiryId;
	}

	public List<Option> getOptions()
	{
		return options;
	}

	public OptionType getOptionType()
	{
		return optionType;
	}

	public String getStoreId()
	{
		return storeId;
	}

	public String getTitle()
	{
		return title;
	}

	public void setChooseCount(Integer chooseCount)
	{
		this.chooseCount = chooseCount;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public void setInquiryId(Long inquiryId)
	{
		this.inquiryId = inquiryId;
	}

	public void setOptions(List<Option> options)
	{
		this.options = options;
	}

	public void setOptionType(OptionType optionType)
	{
		this.optionType = optionType;
	}

	public void setStoreId(String storeId)
	{
		this.storeId = storeId;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}
}
